<?php
class Model_Gamecate extends Model
{

    public function __construct()
    {
		$this->setTable(DB_PREFIX.'game_cate');

		parent::__construct();
    }

	public function gameNumberInCategory()
	{
		return Func::getOpts(
			$this->getAll('GROUP BY cid ', 'cid, COUNT(0) cou'),
			'cid',
			'cou'
		);
	}
}